#pragma warning(disable:4996)
#include<stdio.h>
#include<string.h>
//结构体访问操作符的使用
struct student
{
	char name[20];
	int grade;
	char* gender;
};
int main()
{
	struct student stu;
	struct student* ps = (struct student*)&stu;
	//ps->name="YOU！"——结构体指针访问操作也不可对字符数组进行赋值
	strcpy(ps->name, "会飞的水母");
	ps->grade = 50;
	ps->gender = "会飞的乌龟";
	printf("%s\n%d\n%s\n", ps->name, ps->grade, ps->gender);

   return 0;
}

